<?php
defined('BASEPATH') OR exit('No direct script access allowed');

// This can be removed if you use __autoload() in config.php OR use Modular Extensions
require APPPATH.'/libraries/REST_Controller.php';
class Vendors extends REST_Controller
{
	function __construct()
	{
		parent::__construct();
		$this->load->model('vendor_model');
	}
	public function test_get(){
		$id = $this->get('id');
		$vendor = $this->vendor_model->loadVendor($id);
		$this->response($vendor->getId(), 200);
	}
}